import { onMounted, ref } from 'vue'

export default function useCount() {
  const count = ref(0)

  function increment() {
    count.value++
  }

  onMounted(() => {
    console.log('mounted js')
  })

  return {
    count,
    increment,
  }
}
